package com.example.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.server.po.SysServer;

import java.util.List;

/**
 * @author chentao
 * @version 1.0
 * @description: TODO
 * @date 2025/3/22 下午12:26
 */
public interface SysServerService extends IService<SysServer> {

    public static final String JAVA_VERSION = "java.version";

    public static final String OS_NAME = "os.name";

    public static final String USER_DIR = "user.dir";

    public String getHost();

    public long getPort();

    public int getProcessId();

    public String getOsName();

    public String getOsFamily();

    public String getUserDir();

    public String getJavaVersion();

    public long getCurrentServerId();

    public SysServer getCurrentSysServer();

    public List<SysServer> getAllServer();

    public List<Long> getAllServerIds();

    public long getRandomServerKey();
}
